package org.simplecrm.service.region;

import org.simplecrm.domain.region.Region;
import org.simplecrm.repository.region.RegionDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by oler on 12.09.14.
 */
@Service
public class RegionServiceImpl implements RegionService {

    @Autowired
    private RegionDAO regionDAO;

    @Override
    @Transactional
    public List<Region> getAllRegions() {

        List res;
        res = regionDAO.getAllRegions();
        return res;
    }
}
